package com.frinder.task.strategy.in.biz;

import com.frinder.task.strategy.in.ReceiveTaskBaseStrategy;
import com.frinder.task.strategy.in.ReceiveTaskPayload;
import org.springframework.stereotype.Component;

import java.util.Objects;

import static com.frinder.task.strategy.in.ReceiveTaskPayload.Type.WMS;

/**
 * @ClassName SfReceiveTaskStrategy
 * @Description 接收 WMS 任务处理类
 * @Author frinder
 * @Date 2019/10/17 14:28
 * @Verion 1.0
 */
@Component
public class WmsReceiveTaskStrategy extends ReceiveTaskBaseStrategy {

    @Override
    public void handle(ReceiveTaskPayload payload) {
        if (Objects.equals(payload.getType(), WMS)) {
            //
        } else {
            super.handle(payload);
        }
    }
}
